package com.rc.saas.mini.vo.elec;

import com.rc.saas.mini.common.base.BaseVo;
import com.rc.saas.mini.model.elec.ElecGun;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author wangzhengwei
 * @create 2021/4/22
 */
public class GunVo extends ElecGun {
    @ApiModelProperty(value = "elecGunId")
    private Long elecGunId;
    @ApiModelProperty(value = "gunNum")
    private String gunNum;

    /**
     * 使用状态 0:空闲，1：使用中,2:插枪中,3 故障 4 离线 。。。排除桩运营状态下线的桩
     */
    @ApiModelProperty(value = "使用状态 0:空闲，1：使用中,2:插枪中,3 故障 4 离线 ,5充满")
    private Integer usingStatus;
    /**
        完整编号(2位地区号+5位自增数+1位枪口 =8位桩编号)
     */
    @ApiModelProperty(value = "gunNo编号")
    private String gunNo;



    /**
     * 0：快，1慢
     */
    @ApiModelProperty(value = "0：快，1慢")
    private String pileType;


    /**
     * 剩余充电时间
     */
    @ApiModelProperty(value = "剩余充电时间")
    private String surplusTime = "";

    private String createdBy;
    private Date createdTime;

    public GunVo(ElecGun gun) {
        this.setTenantCode(gun.getTenantCode());
        this.setTenantOperatorCode(gun.getTenantOperatorCode());
        this.setCreatedBy(gun.getCreatedBy());
        this.setCreatedTime(gun.getCreatedTime());
        this.elecGunId = gun.getElecGunId();
        this.gunNum = gun.getGunNum();

        this.gunNo = gun.getGunNo();

    }

    public Long getElecGunId() {
        return elecGunId;
    }

    public void setElecGunId(Long elecGunId) {
        this.elecGunId = elecGunId;
    }

    public String getGunNum() {
        return gunNum;
    }

    public void setGunNum(String gunNum) {
        this.gunNum = gunNum;
    }

    public Integer getUsingStatus() {
        return usingStatus;
    }

    public void setUsingStatus(Integer usingStatus) {
        this.usingStatus = usingStatus;
    }

    public String getGunNo() {
        return gunNo;
    }

    public void setGunNo(String gunNo) {
        this.gunNo = gunNo;
    }


    public String getPileType() {
        return pileType;
    }

    public void setPileType(String pileType) {
        this.pileType = pileType;
    }

    public String getSurplusTime() {
        return surplusTime;
    }

    public void setSurplusTime(String surplusTime) {
        this.surplusTime = surplusTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
}
